function [hours,minutes,seconds]=second2hms(total_seconds)
% convert total_seconds to hours ,minutes and remaining seconds
hours=floor(total_seconds./3600);
minutes=floor((total_seconds-3600*hours)./60);
seconds=total_seconds-3600*hours-60*minutes;
end